<!DOCTYPE HTML>
<html>
	<head>
	<title>{% block title %}无物{% endblock %}</title>
	{% block description %}<meta name="description" content="无物.分享物联网的美好"/>{% endblock %}
	<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
	<link rel="shortcut icon" href="/static/favicon.ico" >
	<link rel="stylesheet" href="/static/css/base.css" type="text/css" charset="utf-8">
	<link rel="stylesheet" href="/static/css/bootstrap.css" type="text/css" charset="utf-8">
	<link rel="stylesheet" href="/static/css/bootstrap-responsive.css" type="text/css" charset="utf-8">
	{% block style%}
	{% endblock %}
	<script type="text/javascript" src="/static/js/jquery.js"></script>
	<script type="text/javascript" src="/static/js/bootstrap.js"></script>
	{% block script %}
	{% endblock %}
	</head>
	<body>
		<div class="navbar navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container">
					<a class="brand" href="/">无物</a>
					<ul class="nav pull-right">
						{% if user %}
							<li><a href='/user/edit'>{{user.username}}</a></li>
							<li><a href="/signout">登出</a></li>
						{% else %}
							<li><a href="/signin">登录</a></li>
							<li><a href="/signup">注册</a></li>
						{% endif %}
						{% if user and user.isAdmin %}
							<li><a href="/admin">管理员</a></li>
						{% else %}
							<li><a href="/">首页</a></li>
						{% endif %}
					</ul>
				</div>
			</div>
		</div>
		<div class="alert fade in" style="display: none">
			<button type="button" class="close" data-dismiss="alert">×</button>
			<span></span>
		</div>
		<div id="content" class="container">
			{% block content %}this is the defualt content{% endblock %}
		</div>
		<footer>
			{% block footer %}
				<div class="container">
					<ul class="nav" style="padding-top: 10px">
						<li style="float: left;margin-right: 20px"><a href="/about">关于无物</a></li>
						<li><a href="/concact">联系我们</a></li>
					</ul>
					<div style="color: gray;">
						<p>作者: wicki&adrienne<br>
						   非常感谢 <a href="http://twitter.github.com/bootstrap/">twitter bootstap</a> 与 <a href="http://jquery.org/">jquery</a><br>
						   无物建义使用<a target="_blank" href="http://www.google.cn/chrome/intl/zh-CN/landing_chrome.html">chrome</a>, <a target="_blank" href="http://www.opera.com/">opera</a>或者<a target="_blank" href="http://firefox.com.cn/">firefox</a>等现代浏览器上网，告别ie6，让互联网世界更美好</p>
					</div>
				</div>
			{% endblock %}
		</footer>
	</body>
</html>
